package com.pmcc.cj.repository;

import com.pmcc.cj.entity.CjTask;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by tomas on 2020/10/11.
 */
public interface CjTaskRepository extends JpaRepository<CjTask,String> {
    CjTask findByOrderId(String orderId);
    Page<CjTask> findAll(Specification<CjTask> spec, Pageable var1);
    List<CjTask> findByRobotIdAndFettleTask(String robotId,Integer taskFlag);
    List<CjTask> findByRobotIdAndFettleTaskAndFettleTypeAndRobotFlag(String robotId,Integer taskFlag,int fettleType,String robotFlag);
    List<CjTask> findByFettleType(int fettleType);
}
